using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [DataContract, Table("sys_exec_pos_group_dtls")]
    public class ExecPosGroupDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity), Column("exec_pos_group_dtls_seq")]
		[DataMember, Display(Name = "ExecPosGroupDtlsId", ResourceType = typeof(Resources.ExecPosGroupDtlsResource))]
        public int ExecPosGroupDtlsId { get; set; }

		[ForeignKey("ExecPosGroup"), Column("exec_pos_group_seq")]
		[DataMember, Display(Name = "ExecPosGroupId", ResourceType = typeof(Resources.ExecPosGroupDtlsResource))]
        public Nullable<int> ExecPosGroupId { get; set; }

        [ForeignKey("HrmExecutivePosition"), Column("exec_pos_seq")]
		[DataMember, Display(Name = "ExecPosId", ResourceType = typeof(Resources.ExecPosGroupDtlsResource))]
        public Nullable<int> ExecPosId { get; set; }

        [DataMember]
		public virtual ExecPosGroup ExecPosGroup { get; set; }

        [DataMember ]
        public virtual HRM.ExecutivePosition HrmExecutivePosition { get; set; }

        
        #region

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.ExecPosGroupResource)), Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        #endregion
    }
}